package com.qf.homework.dao;

import com.qf.homework.entity.User;
import org.apache.ibatis.annotations.Param;


import java.util.List;
import java.util.Map;

public interface UserDao {
    User getUserById(@Param("id") Integer id);
    User getUserByIdAndPwd(@Param("id") Integer id ,@Param("pwd") String pwd);
    User selectUserByIdAndPwd_map(Map values);
    User selectUserByUserInfo(User user);
    List<User> selectUsersByKeyword(@Param("keyword") String keyword);
    Integer deleteUserById(Integer id);
    Integer updateUser(User user);
    Integer insertUser(User user);
}
